/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package model;

import java.awt.Graphics;
import java.awt.Image;

/**
 *
 * @author Misja
 */
public abstract class GamePart {

    private boolean canMove;
    private Image appereance;

    public GamePart() {
    }

    public void draw(Graphics g, int xCoordinate, int yCoordinate) {
        if(this.appereance != null){
            g.drawImage(appereance, xCoordinate, yCoordinate, null);
        }
    }

    /**
     * @return the canMove
     */
    public boolean isCanMove() {
        return canMove;
    }

    /**
     * @param canMove the canMove to set
     */
    public void setCanMove(boolean canMove) {
        this.canMove = canMove;
    }

    /**
     * @return the appereance
     */
    public Image getAppereance() {
        return appereance;
    }

    /**
     * @param appereance the appereance to set
     */
    public void setAppereance(Image appereance) {
        this.appereance = appereance;
    }
}
